package cn.wolfcode.car.business.service;


import cn.wolfcode.car.business.domain.BpmnInfo;
import cn.wolfcode.car.business.query.BpmnInfoQuery;
import cn.wolfcode.car.common.base.page.TablePageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;

/**
 * 流程部署接口
 */
public interface IBpmnInfoService {

    /**
     * 分页
     * @param qo
     * @return
     */
    TablePageInfo<BpmnInfo> query(BpmnInfoQuery qo);


    // 文件上传
    String uploadBpmnfile(MultipartFile file) throws IOException;

    //流程文件部署
    void deploy(String path, String bpmnType, String info) throws IOException;

    //删除流程定义
    void delete(Long id);

    // 流程文件下载查看
    InputStream readResource(String deploymentId, String type);

    List<BpmnInfo> queryByType(String type);
}









